﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SafeLoad.NControl.Assist
{
	public class NCurvePoint
	{
		/// <summary>
		/// 数据的时间
		/// </summary>
		public DateTime Time { get; set; }
		/// <summary>
		/// 数据
		/// </summary>
		public double Data { get; set; }
		/// <summary>
		/// 是否报警
		/// </summary>
		public bool IsAlarm { get; set; }

		public NCurvePoint(DateTime time, double data)
		{
			this.Time = time;
			this.Data = data;
			this.IsAlarm = false;
		}

		public NCurvePoint(DateTime time, double data, bool isAlarm)
		{
			this.Time = time;
			this.Data = data;
			this.IsAlarm = isAlarm;
		}

	}
}
